﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BankManage.other.lottery
{
    class Raffle
    {
        int a;
        int awards;
        Random r = new Random();
        public int Draw()
        {
            a = r.Next(0, 101);
            switch (a / 10)
            {
                case 10:
                    return 200;
                    break;
                case 9:
                    return 20;
                    break;
                case 8:
                case 7:
                    return 5;
                    break;
                case 6:
                case 5:
                case 4:
                    return 2;
                    break;
                case 3:
                case 2:
                case 1:
                case 0:
                    return 1;
                default:
                    return 0;
            }

        }
    }
}
